import lazyLoadView from "./lazyLoadView";
const routerIn = [{
    path: '/',
    redirect: 'home',
    component: () => lazyLoadView(import('./cite/cite.vue')),
    children: [
      {
        path:"/home",
        component:()=>lazyLoadView(import('@/pages/home/index.vue')),
        name:"home",
        meta:{
          title:"系统首页"
        }
      },
      {
        path:"/table",
        component:()=>lazyLoadView(import('@/pages/table/index.vue')),
        name:"table",
        meta:{
          title: "表格页面"
        }
      },
      {
        path:"/basicform",
        component:()=>lazyLoadView(import('@/pages/form/basic-form.vue')),
        name:"basicform",
        meta:{
          title: "基础表单"
        }
      },
      {
        path:"/stepform",
        component:()=>lazyLoadView(import('@/pages/form/step-form.vue')),
        name:"stepform",
        meta:{
          title: "分步表单"
        }
      },
      {
        path:"/calendar",
        component:()=>lazyLoadView(import('@/pages/other/calendar.vue')),
        name:"calendar",
        meta:{
          title: "日历页"
        }
      },
      {
        path:"/personalcenter",
        component:()=>lazyLoadView(import('@/pages/personal/personal-center.vue')),
        name:"personalcenter",
        meta:{
          title: "个人中心"
        }
      }
    ]
  },
  {
    path: '*',
    component: () => lazyLoadView(import('./cite/quote/404.vue')),
    name: "notfount",
    meta: {
      title: "找不到页面"
    }
  },
];
export default routerIn